import {templateIdinfo} from '../../api/paperinfo/paperinfo.js'
import { Message } from 'element-ui';
const state = {
  imageArray: []
}
const mutations = {
  changeNotice(state, obj) {
    state.noticelist = obj
    state.count = obj.count
  }
}
const actions = {
  TemplateimgActions(context, id) {
    console.info(id)
    let params={
      templateId:id
    }
    templateIdinfo(params).then(res => {
      if (res.code == 200) {
      } else {
        Message.error(res.msg)
      }
    })
  }
}
const getters = {
  imageArray(state) {
    return state.imageArray
  }
}

export default {
  state,
  mutations,
  actions,
  getters,
  namespaced: true
}
